package com.chixing.day12_date_factory;

public class PointerTest {
    public static void main(String[] args) {
        //菱形语法
        Pointer<Integer> p1 = new Pointer<>();
        p1.setX(10);
        p1.setY(20);

        Pointer<Integer> p2 = new Pointer<>(10,30);

        Pointer<Double> p3 =  new Pointer<>();
        p3.setX(34.1);
        p3.setY(87.4);

        Pointer<String> pointer4 =  new Pointer<>("东经222度","北纬111度");


        fun(10,"xxx");
    }


    public static void fun(int a,String b){

    }
}
